home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / docshell / nsIDocShellTreeNode.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  147 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDocShellTreeNode.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDocShellTreeNode_h__
  6. #define __gen_nsIDocShellTreeNode_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIDocShellTreeItem_h__
  14. #include "nsIDocShellTreeItem.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIDocShellTreeNode */
  23. #define NS_IDOCSHELLTREENODE_IID_STR "37f1ab73-f224-44b1-82f0-d2834ab1cec0"
  24.  
  25. #define NS_IDOCSHELLTREENODE_IID \
  26.   {0x37f1ab73, 0xf224, 0x44b1, \
  27.     { 0x82, 0xf0, 0xd2, 0x83, 0x4a, 0xb1, 0xce, 0xc0 }}
  28.  
  29. /**
  30.  * The nsIDocShellTreeNode supplies the methods for interacting with children
  31.  * of a docshell.  These are essentially the methods that turn a single docshell
  32.  * into a docshell tree. 
  33.  */
  34. class NS_NO_VTABLE nsIDocShellTreeNode : public nsISupports {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCSHELLTREENODE_IID)
  38.  
  39.   /* readonly attribute long childCount; */
  40.   NS_IMETHOD GetChildCount(PRInt32 *aChildCount) = 0;
  41.  
  42.   /* void addChild (in nsIDocShellTreeItem child); */
  43.   NS_IMETHOD AddChild(nsIDocShellTreeItem *child) = 0;
  44.  
  45.   /* void removeChild (in nsIDocShellTreeItem child); */
  46.   NS_IMETHOD RemoveChild(nsIDocShellTreeItem *child) = 0;
  47.  
  48.   /* nsIDocShellTreeItem getChildAt (in long index); */
  49.   NS_IMETHOD GetChildAt(PRInt32 index, nsIDocShellTreeItem **_retval) = 0;
  50.  
  51.   /* nsIDocShellTreeItem findChildWithName (in wstring aName, in boolean aRecurse, in boolean aSameType, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor); */
  52.   NS_IMETHOD FindChildWithName(const PRUnichar *aName, PRBool aRecurse, PRBool aSameType, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem **_retval) = 0;
  53.  
  54. };
  55.  
  56. /* Use this macro when declaring classes that implement this interface. */
  57. #define NS_DECL_NSIDOCSHELLTREENODE \
  58.   NS_IMETHOD GetChildCount(PRInt32 *aChildCount); \
  59.   NS_IMETHOD AddChild(nsIDocShellTreeItem *child); \
  60.   NS_IMETHOD RemoveChild(nsIDocShellTreeItem *child); \
  61.   NS_IMETHOD GetChildAt(PRInt32 index, nsIDocShellTreeItem **_retval); \
  62.   NS_IMETHOD FindChildWithName(const PRUnichar *aName, PRBool aRecurse, PRBool aSameType, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem **_retval); 
  63.  
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  65. #define NS_FORWARD_NSIDOCSHELLTREENODE(_to) \
  66.   NS_IMETHOD GetChildCount(PRInt32 *aChildCount) { return _to GetChildCount(aChildCount); } \
  67.   NS_IMETHOD AddChild(nsIDocShellTreeItem *child) { return _to AddChild(child); } \
  68.   NS_IMETHOD RemoveChild(nsIDocShellTreeItem *child) { return _to RemoveChild(child); } \
  69.   NS_IMETHOD GetChildAt(PRInt32 index, nsIDocShellTreeItem **_retval) { return _to GetChildAt(index, _retval); } \
  70.   NS_IMETHOD FindChildWithName(const PRUnichar *aName, PRBool aRecurse, PRBool aSameType, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem **_retval) { return _to FindChildWithName(aName, aRecurse, aSameType, aRequestor, aOriginalRequestor, _retval); } 
  71.  
  72. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  73. #define NS_FORWARD_SAFE_NSIDOCSHELLTREENODE(_to) \
  74.   NS_IMETHOD GetChildCount(PRInt32 *aChildCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCount(aChildCount); } \
  75.   NS_IMETHOD AddChild(nsIDocShellTreeItem *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChild(child); } \
  76.   NS_IMETHOD RemoveChild(nsIDocShellTreeItem *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChild(child); } \
  77.   NS_IMETHOD GetChildAt(PRInt32 index, nsIDocShellTreeItem **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildAt(index, _retval); } \
  78.   NS_IMETHOD FindChildWithName(const PRUnichar *aName, PRBool aRecurse, PRBool aSameType, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindChildWithName(aName, aRecurse, aSameType, aRequestor, aOriginalRequestor, _retval); } 
  79.  
  80. #if 0
  81. /* Use the code below as a template for the implementation class for this interface. */
  82.  
  83. /* Header file */
  84. class nsDocShellTreeNode : public nsIDocShellTreeNode
  85. {
  86. public:
  87.   NS_DECL_ISUPPORTS
  88.   NS_DECL_NSIDOCSHELLTREENODE
  89.  
  90.   nsDocShellTreeNode();
  91.  
  92. private:
  93.   ~nsDocShellTreeNode();
  94.  
  95. protected:
  96.   /* additional members */
  97. };
  98.  
  99. /* Implementation file */
  100. NS_IMPL_ISUPPORTS1(nsDocShellTreeNode, nsIDocShellTreeNode)
  101.  
  102. nsDocShellTreeNode::nsDocShellTreeNode()
  103. {
  104.   /* member initializers and constructor code */
  105. }
  106.  
  107. nsDocShellTreeNode::~nsDocShellTreeNode()
  108. {
  109.   /* destructor code */
  110. }
  111.  
  112. /* readonly attribute long childCount; */
  113. NS_IMETHODIMP nsDocShellTreeNode::GetChildCount(PRInt32 *aChildCount)
  114. {
  115.     return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117.  
  118. /* void addChild (in nsIDocShellTreeItem child); */
  119. NS_IMETHODIMP nsDocShellTreeNode::AddChild(nsIDocShellTreeItem *child)
  120. {
  121.     return NS_ERROR_NOT_IMPLEMENTED;
  122. }
  123.  
  124. /* void removeChild (in nsIDocShellTreeItem child); */
  125. NS_IMETHODIMP nsDocShellTreeNode::RemoveChild(nsIDocShellTreeItem *child)
  126. {
  127.     return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129.  
  130. /* nsIDocShellTreeItem getChildAt (in long index); */
  131. NS_IMETHODIMP nsDocShellTreeNode::GetChildAt(PRInt32 index, nsIDocShellTreeItem **_retval)
  132. {
  133.     return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135.  
  136. /* nsIDocShellTreeItem findChildWithName (in wstring aName, in boolean aRecurse, in boolean aSameType, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor); */
  137. NS_IMETHODIMP nsDocShellTreeNode::FindChildWithName(const PRUnichar *aName, PRBool aRecurse, PRBool aSameType, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem **_retval)
  138. {
  139.     return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141.  
  142. /* End of implementation class template. */
  143. #endif
  144.  
  145.  
  146. #endif /* __gen_nsIDocShellTreeNode_h__ */
  147.